package worlds
{
	import global.ErrorType;
	import global.Managers;
	
	import ui.faces.management.ManagementFace;
	
	public class ManagementWorld extends BaseWorld
	{
		private static var _instance		: ManagementWorld;
		
		public function ManagementWorld()
		{
			super();
			if(_instance != null) {
				throw new Error(ErrorType.SINGLETON);
			}
		}
		public static function getInstance():ManagementWorld {
			if(_instance == null) {
				_instance = new ManagementWorld();
			}
			return _instance;
		}
		override public function init():void {
			super.init();
			// 切换为总台界面
			Managers.faceManager.switchTo(Managers.faceManager.managementFace);
			Managers.serverManager.subscribe("ID", setIDOKHandler);
		}
		private function setIDOKHandler(data:Object):void {
			Managers.faceManager.managementFace.getApplyPayList();
		}
	}
}